home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / jar / nsIJARURI.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  135 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIJARURI.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIJARURI_h__
  6. #define __gen_nsIJARURI_h__
  7.  
  8.  
  9. #ifndef __gen_nsIURL_h__
  10. #include "nsIURL.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIJARURI */
  19. #define NS_IJARURI_IID_STR "c7e410d3-85f2-11d3-9f63-006008a6efe9"
  20.  
  21. #define NS_IJARURI_IID \
  22.   {0xc7e410d3, 0x85f2, 0x11d3, \
  23.     { 0x9f, 0x63, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9 }}
  24.  
  25. /**
  26.  * JAR URLs have the following syntax
  27.  *
  28.  * jar:<jar-file-uri>!/<jar-entry>
  29.  *
  30.  * EXAMPLE: jar:http://www.big.com/blue.jar!/ocean.html
  31.  *
  32.  * The nsIURL methods operate on the <jar-entry> part of the spec.
  33.  */
  34. class NS_NO_VTABLE nsIJARURI : public nsIURL {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJARURI_IID)
  38.  
  39.   /**
  40.      * Returns the root URI (the one for the actual JAR file) for this JAR.
  41.      * eg http://www.big.com/blue.jar
  42.      */
  43.   /* attribute nsIURI JARFile; */
  44.   NS_IMETHOD GetJARFile(nsIURI * *aJARFile) = 0;
  45.   NS_IMETHOD SetJARFile(nsIURI * aJARFile) = 0;
  46.  
  47.   /**
  48.      * Returns the entry specified for this JAR URI.
  49.      * eg ocean.html
  50.      */
  51.   /* attribute AUTF8String JAREntry; */
  52.   NS_IMETHOD GetJAREntry(nsACString & aJAREntry) = 0;
  53.   NS_IMETHOD SetJAREntry(const nsACString & aJAREntry) = 0;
  54.  
  55. };
  56.  
  57. /* Use this macro when declaring classes that implement this interface. */
  58. #define NS_DECL_NSIJARURI \
  59.   NS_IMETHOD GetJARFile(nsIURI * *aJARFile); \
  60.   NS_IMETHOD SetJARFile(nsIURI * aJARFile); \
  61.   NS_IMETHOD GetJAREntry(nsACString & aJAREntry); \
  62.   NS_IMETHOD SetJAREntry(const nsACString & aJAREntry); 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  65. #define NS_FORWARD_NSIJARURI(_to) \
  66.   NS_IMETHOD GetJARFile(nsIURI * *aJARFile) { return _to GetJARFile(aJARFile); } \
  67.   NS_IMETHOD SetJARFile(nsIURI * aJARFile) { return _to SetJARFile(aJARFile); } \
  68.   NS_IMETHOD GetJAREntry(nsACString & aJAREntry) { return _to GetJAREntry(aJAREntry); } \
  69.   NS_IMETHOD SetJAREntry(const nsACString & aJAREntry) { return _to SetJAREntry(aJAREntry); } 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  72. #define NS_FORWARD_SAFE_NSIJARURI(_to) \
  73.   NS_IMETHOD GetJARFile(nsIURI * *aJARFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJARFile(aJARFile); } \
  74.   NS_IMETHOD SetJARFile(nsIURI * aJARFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJARFile(aJARFile); } \
  75.   NS_IMETHOD GetJAREntry(nsACString & aJAREntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJAREntry(aJAREntry); } \
  76.   NS_IMETHOD SetJAREntry(const nsACString & aJAREntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJAREntry(aJAREntry); } 
  77.  
  78. #if 0
  79. /* Use the code below as a template for the implementation class for this interface. */
  80.  
  81. /* Header file */
  82. class nsJARURI : public nsIJARURI
  83. {
  84. public:
  85.   NS_DECL_ISUPPORTS
  86.   NS_DECL_NSIJARURI
  87.  
  88.   nsJARURI();
  89.  
  90. private:
  91.   ~nsJARURI();
  92.  
  93. protected:
  94.   /* additional members */
  95. };
  96.  
  97. /* Implementation file */
  98. NS_IMPL_ISUPPORTS1(nsJARURI, nsIJARURI)
  99.  
  100. nsJARURI::nsJARURI()
  101. {
  102.   /* member initializers and constructor code */
  103. }
  104.  
  105. nsJARURI::~nsJARURI()
  106. {
  107.   /* destructor code */
  108. }
  109.  
  110. /* attribute nsIURI JARFile; */
  111. NS_IMETHODIMP nsJARURI::GetJARFile(nsIURI * *aJARFile)
  112. {
  113.     return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115. NS_IMETHODIMP nsJARURI::SetJARFile(nsIURI * aJARFile)
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* attribute AUTF8String JAREntry; */
  121. NS_IMETHODIMP nsJARURI::GetJAREntry(nsACString & aJAREntry)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. NS_IMETHODIMP nsJARURI::SetJAREntry(const nsACString & aJAREntry)
  126. {
  127.     return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129.  
  130. /* End of implementation class template. */
  131. #endif
  132.  
  133.  
  134. #endif /* __gen_nsIJARURI_h__ */
  135.